{include file="default/base/header" /}

<link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
<script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
<div class='page'>
      <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
       <thead>
           <tr>
               <th colspan="6">基本信息</th>
           </tr>
       </thead>
       <tbody>
           <tr>
               <th style="width: 68px;" >商品名称：</th>
               <td style="width: 300px;"  >{$goods_info.goods_name}</td>
               <th style="width: 68px;"  >商品分类：</th>
               <td>{$goods_info.class_name}</td>
               <th style="width: 68px;"  >商品品牌：</th>
               <td>{$goods_info.brand_name}</td>
           </tr>
        <?php if(!empty($goods_info['goods_stateremark'])&&$goods_info['goods_status']==2){  ?>
          <thead>
          <tr>
              <th colspan="6">审核意见</th>
          </tr>
          </thead>
          <tr>
              <th>未通过原因：</th>
              <td>{$goods_info.goods_stateremark}</td>
          </tr>
         <?php }else{ ?>
          <?php  }?>
      </table>

    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <thead>
        <tr>
            <th colspan="6">商品名称&规格值信息及价格：</th>
        </tr>
        </thead>
        <tr>
            <td style="width:400px;">商品名称&规格值</td>
            <!--1&#45;&#45;加价运营商 2 &#45;&#45;提成运营商-->
            {if $store_status == '1'}
            <td>加价运营商</td>
            <!--gu_final_price-->
            {/if}
            {if $store_status == '2'}
            <td>提成运营商</td>
            {/if}
            <td>售价</td>
            <td>库存</td>
            <td>库存安全值</td>
            <td>操作</td>
        </tr>
        <?php foreach($goods as $k=>$v){  ?>
        <tr>
            <td>{$v.goods_name}</td>
            {if $store_status == '1'}
            <td>{$v.gu_final_price}</td>
            {/if}
            {if $store_status == '2'}
            <td>{$v.ti_final_price}</td>
            {/if}
            <td>{$v.goods_price}元</td>
            <td>{$v.goods_storage}</td>
            <td>{$v.goods_storage_alarm}</td>
            <td> <a href="{:url('Sellergoodsadd/goods_setting_info',['goods_id'=>$v.goods_id,'is_href'=>1])}" class="dssc-btn dssc-btn-green" style="margin-right: 10px;" ><p>查看详情</p></a></td>

        </tr>
        <?php  }?>
    </table>





        <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
            <thead>
           <tr>
               <th colspan="6">基本文件信息</th>
           </tr>
       </thead>
            <tr>
               <th style='width:80px;'>轮播图视频：</th>
               <td>
                 <?php if(empty($goods_info['videos'])){ ?> 
                  暂无视频
                  <th></th>

                 <?php }else{ ?>
              
                 <video width="300" height="180" controls>
                   <source src="{$http_name}/{$goods_info.videos}" type="video/mp4">
                 </video>
                 <th></th>
                 <?php  }?>
               </td>
           </tr>
         </table>
           <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
           <tr>
           <th style='width:80px;'>商品图片：</th>
               <td>
              <?php if(empty($goods_img)){ ?> 
                  暂无图片
                  <th></th>

                 <?php }else{ ?>
              
                  {foreach name="goods_img" item="val" }
                  <img src="{$http_name}/{$val.goodsimage_url}" width="120" height="120" />
                  {/foreach}
                 <?php  }?>
               </td>
           </tr>    
       </tbody>
   </table>
</div>
